FROM openjdk:8
VOLUME /tmp
MAINTAINER raymond

ENV TZ Asia/Shanghai
RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
RUN mkdir /root/logs && mkdir /root/run
WORKDIR /root
COPY . .
CMD ["sh", "-c", "./start.sh start && tail -f /dev/null"]
